package com.lyf.boot.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author Luyufan
 * @date 2025/1/14
 **/
@Data
@Component
@ConfigurationProperties(prefix = "tio.websocket.server")
public class TioWebSocketProperties {

    private Boolean enabled;

    private Integer port;

    /**
     * 心跳超时时间，单位：毫秒
     */
    private Long heartbeatTimeout = 1000 * 120L;

    private Long ipStatDuration = 1000L;

    private String protocolName;
}
